package com.fudan.cfg.trans;

import java.util.List;
import java.util.Map;

import com.fudan.cfg.base.TransDef;
import com.fudan.run.ctx.annotation.TransAdapter;

@TransAdapter("filter")
public class FilterFieldsTransDef extends TransDef{

	private String target;
	private List<String> exclusion;
	public FilterFieldsTransDef(String name, String type,String target) {
		super(name, type,target);
	}

	@Override
	public TransDef build(Map<String, Object> configuration) {
		this.target = (String) configuration.get("target");
		this.exclusion = (List<String>) configuration.get("exclusion");
		return this;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public List<String> getExclusion() {
		return exclusion;
	}

	public void setExclusion(List<String> exclusion) {
		this.exclusion = exclusion;
	}

}
